import request from '@/utils/request'

// 查询店铺列表列表
export function listTshop(query) {
    return request({
        url: '/system/tshop/list',
        method: 'get',
        params: query
    })
}

// 查询店铺列表详细
export function getTshop(shopId) {
    return request({
        url: '/system/tshop/info/' + shopId,
        method: 'get'
    })
}

// 新增店铺列表
export function addTshop(data) {
    return request({
        url: '/system/tshop/add',
        method: 'post',
        data: data
    })
}

// 修改店铺列表
export function updateTshop(data) {
    return request({
        url: '/system/tshop/update',
        method: 'put',
        data: data
    })
}

// 删除店铺列表
export function delTshop(shopId) {
    return request({
        url: '/system/tshop/delete/' + shopId,
        method: 'delete'
    })
}

export function updateStatus(data) {
    return request({
        url: '/system/tshop/updateStatus',
        method: 'post',
        data: data
    })
}

export function updatePlayStatus(data) {
    return request({
        url: '/system/tshop/updatePlayStatus',
        method: 'post',
        data: data
    })
}